import request from '@/utils/request'

// 查询原料质检列表
export function listRaw(query) {
  return request({
    url: '/raw/raw/list',
    method: 'get',
    params: query
  })
}

// 查询原料质检详细
export function getRaw(qualityRawId) {
  return request({
    url: '/raw/raw/' + qualityRawId,
    method: 'get'
  })
}

// 新增原料质检
export function addRaw(data) {
  return request({
    url: '/raw/raw',
    method: 'post',
    data: data
  })
}

// 修改原料质检
export function updateRaw(data) {
  return request({
    url: '/raw/raw',
    method: 'put',
    data: data
  })
}

// 删除原料质检
export function delRaw(qualityRawId) {
  return request({
    url: '/raw/raw/' + qualityRawId,
    method: 'delete'
  })
}
